package cn.hr.dao.mapper;

import cn.hr.pojo.SysRole;
import org.apache.ibatis.annotations.Param;

import java.sql.SQLException;
import java.util.List;

/**
 * Created by MO on 2018/12/25.
 */
public interface SysRoleMapper {
    SysRole findById(@Param("id") Integer id) throws SQLException;

    SysRole findByName(@Param("name") String name) throws SQLException;

    List<SysRole> findAll() throws SQLException;
}
